import { IRoute } from 'umi-types';

const route:IRoute[]=[
  {
    path: '/',
    component: '../layouts/index.tsx',
    routes: [
      {
        path:"",
        redirect:"/home"
      },
      {
        path: 'home',
        component: './index.tsx',
      },
      {
        path: 'class',
        component: './index.tsx',
      },
      {
        path: 'my',
        component: './index.tsx',
      },
    ],
  }
];

export default route;
